from ..koi_callable import KoiCallable
from typing import List
import time


class Clock(KoiCallable):
    def arity(self) -> int:
        return 0

    def call(self, interpreter, args: List):
        return time.time()

    def __repr__(self) -> str:
        return "<native function clock>"
